package com.demo.springBoot2.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Time;
import java.time.LocalDateTime;
import java.time.LocalTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 校园铃声
 * </p>
 *
 * @author wuHua·pl
 * @since 2024-04-11
 */
@Getter
@Setter
@TableName("campus_ringtone")
@ApiModel(value = "CampusRingtone对象", description = "校园铃声")
public class CampusRingtone implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("铃声Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("打铃时间")
    private Time ringTime;

    @ApiModelProperty("打铃内容")
    private String ringtoneContent;

    @ApiModelProperty("打铃文件路径")
    private String ringtonePath;

    @ApiModelProperty("区分上午下午")
    private String period;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("状态")
    private Boolean flag;
}
